package com.njtoyo.taxi.admin.rest.readfile.taxis;

import com.njtoyo.taxi.admin.mapper.master.entity.Taxi;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(value = "批量注册结果")
public class RegisterBatchResult {

    @ApiModelProperty(value = "上传个数")
    private int uploadCount = 0;

    @ApiModelProperty(value = "成功个数")
    private int successCount = 0;

    @ApiModelProperty(value = "失败个数")
    private int failCount = 0;

    @ApiModelProperty(value = "成功数据")
    private List<Taxi> successResult;

    @ApiModelProperty(value = "失败数据")
    private List<RegisterBatchResult.FailData> failResult;

    @Data
    public static class FailData extends RegisterBatchData {
        private String message;
    }
}
